import request from '@/utils/request'

export function getUserList(data) {
    return request({
        url: '/users',
        method: 'get',
        params: data
    })
}

export function StateChanged(url) {
    return request({
        url: url,
        method: 'put'
    })
}

export function getAddUser(data) {
    return request({
        url: '/users',
        method: 'post',
        data: data
    })
}

export function getDeleteUser(url) {
    return request({
        url: url,
        method: 'delete',
    })
}

export function getxgUser(url, data) {
    return request({
        url: url,
        method: 'put',
        data: data
    })
}